package com.citic.netty.common.protocol.request;

import com.citic.netty.common.protocol.Command;
import com.citic.netty.common.protocol.Packet;

public class GroupMessageRequestPacket extends Packet {
	
	private static final long serialVersionUID = 1L;
	
	private String toGroupId;
    private String message;

    public GroupMessageRequestPacket(String toGroupId, String message) {
        this.toGroupId = toGroupId;
        this.message = message;
    }

    public String getToGroupId() {
		return toGroupId;
	}

	public void setToGroupId(String toGroupId) {
		this.toGroupId = toGroupId;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	@Override
    public Byte getCommand() {
        return Command.GROUP_MESSAGE_REQUEST;
    }
}